Skip to main content

revXMLAddDTD

Type

command

Summary

Adds an internal DTD to an existing XML tree.

Syntax

revXMLAddDTD <treeID>, <DTDText>

Description

Use the revXMLAddDTD command to specify the format of an XML tree.

Important

The revXMLAddDTD command is part of the XML library. To ensure that the command works in a standalone application, you must include this custom library when you create your standalone. In the Inclusions pane of the Standalone Application Settings window, make sure the "XML" checkbox is checked.

Parameters

NameTypeDescription

treeID

The number returned by the revXMLCreateTree or revXMLCreateTreeFromFile function when you created the XML tree.

DTDText

string

A string that makes up a valid Document Type Definition.

Examples

revXMLAddDTD 12,URL "file:ExampleDTD.txt"
revXMLAddDTD theCurrTree,the templateDTD of me

command: revXMLAppend

function: revXMLValidateDTD, result, revXMLCreateTree, revXMLCreateTreeFromFile

glossary: Standalone Application Settings, standalone application, DTD, XML tree, command, LiveCode custom library

library: XML library

Compatibility and Support

Introduced

LiveCode 2.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?